#include<bits/stdc++.h>
using namespace std;
int main()
{
	float x;
	cin>>x;
	cout<<fixed<<setprecision(1);
	if(x <= 50)
		cout<<x*0.15;
	else
		cout<<50*0.15+(x-50)*0.1;
    return 0;
}

